#!/bin/bash
#


#
read -p "请输入第一个小数" sum1 ;

if [[ $sum1 =~ ^-?[0-9]+$ ]]; then
	echo "需要输入一个整数";
	exit 77;
fi
read -p "请输入第二个小数" sum2 ;
 
if [[ $sum2 =~ ^-?[0-9]+$ ]]; then
	echo "需要输入一个整数";
	exit 99;
fi

sum=`echo "$sum1 > $sum2" | bc`;
eq=`echo "$sum1 == $sum2" | bc`;
if [ $eq -eq 1 ];then
	echo "$sum1 = $sum2";
else
	if [ $sum -eq 1 ]; then
		echo "$sum1 > $sum2";
		exit 66;
	else
		echo "$sum1 < $sum2";
		exit 99;
	fi
fi
	
